import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface Role extends Model {
	code: string;
	detail: string;
	parent: string;
}

class RoleService extends DataService<RoleService, Role> {
	protected create(): RoleService {
		return this.initTokenInstance('role') as RoleService;
	}
}

export const roleService = new RoleService();
